#ifndef WIDGET_H
#define WIDGET_H

#include <head/g_pch.h>
#include <head/db_helper.h>
#include "m_fhs.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void generateMenu(){}
    void updateView();
    void setHeaderData();

    void updateSources();
    void updateMachineNames();

private slots:
    void on_btn_submit_clicked();

    void on_tableView_clicked(const QModelIndex &index);

private:
    Ui::Widget *ui;

    QString table;
    QSqlQueryModel *model;
};
#endif // WIDGET_H
